home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / winvn060.arc / FIND_VEC.C next >
C/C++ Source or Header  |  1991-07-01  |  2KB  |  47 lines

  1. /*
  2.  * SRCLIB\NETLIB\FIND_VEC.C
  3.  *
  4.  * Copyright (C) 1986,1987,1988 by FTP Software, Inc.
  5.  * 
  6.  * This software is furnished under a license and may be used and copied
  7.  * only in accordance with the terms of such license and with the
  8.  * inclusion of the above copyright notice. This software or any other
  9.  * copies thereof may not be provided or otherwise made available to any
  10.  * other person. No title to and ownership of the software is hereby
  11.  * transferred.
  12.  * 
  13.  * The information in this software is subject to change without notice
  14.  * and should not be construed as a commitment by FTP Software, Inc.
  15.  *
  16.  * 
  17.  * EDIT HISTORY:
  18.  * 05-Feb-88    jog    _find_vec now calls vec_search to do work previous
  19.  *              versions of _find_vec did itself. vec_search returns
  20.  *              vector # or 0 on failure. Functionality of _find_vec 
  21.  *              is not changed.
  22.  * 19-Feb-88    jbvb    Change message for HP 
  23. */
  24.  
  25. #include <pctcp/types.h>
  26. #include <pctcp/pctcp.h>
  27.  
  28. extern int vec_search();   /* routine to search interrupt table */
  29.  
  30. _find_vec()
  31.     { int vecnum;            /* = vector number or 0(on failure) */
  32.    
  33.       vecnum = vec_search(); /* look for packet driver vector    */
  34.       
  35.       if (vecnum != 0)       /* if found vector, return vector # */ 
  36.           return (vecnum);
  37.   
  38.       /* else, not found */
  39. #ifdef HP
  40.       printf("The ARPA Services/Vectra resident module is not loaded.\n");
  41.       printf("You should run \"netload\" and try the application again.\n");
  42. #else
  43.       printf("PC\TCP resident module is not loaded; aborting program...\n");
  44. #endif
  45.       exit(255);
  46.     }
  47.